package org.darkforest.common.services.impl;

import org.darkforest.common.services.ComplainSubjectService;
import org.darkforest.dao.mapper.ComplainSubjectMapper;
import org.darkforest.model.ComplainSubject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by huayunsky on 12/16/2complainSubjectMapper15.
 */

@Service
public class ComplainSubjectServiceImpl implements ComplainSubjectService {
    
    @Autowired
    private ComplainSubjectMapper complainSubjectMapper;
    
    @Override
    public int deleteByPrimaryKey(Integer complainSubjectId) {
        return complainSubjectMapper.deleteByPrimaryKey(complainSubjectId);
    }

    @Override
    public int insert(ComplainSubject record) {
        return complainSubjectMapper.insert(record);
    }

    @Override
    public int insertSelective(ComplainSubject record) {
        return complainSubjectMapper.insertSelective(record);
    }

    @Override
    public ComplainSubject selectByPrimaryKey(Integer complainSubjectId) {
        return complainSubjectMapper.selectByPrimaryKey(complainSubjectId);
    }

    @Override
    public int updateByPrimaryKeySelective(ComplainSubject record) {
        return complainSubjectMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ComplainSubject record) {
        return complainSubjectMapper.updateByPrimaryKey(record);
    }

    @Override
    public ComplainSubject selectByCondition(ComplainSubject page) {
        page.setResultList(complainSubjectMapper.selectByCondition(page));
        return page;
    }
}
